package com.xm;

/**
 * @Author：xm
 * @Project：runoob
 * @Date：2024/7/9 14:56
 */

public class Penguin01 extends Animal01{
    public Penguin01(String myName,int myId){
        super(myName,myId);
        System.out.println(myName+myId);
    }

    public Penguin01() {
        System.out.println("子类无参构造方法.");
    }

    public static void main(String[] args) {
        Penguin01 penguin01 = new Penguin01("企鹅", 2);
        penguin01.introduction();
    }
}
